class smx_restheart
{
  require smx_os
  require smx_download

  Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] }


  file { '/etc/init.d/fxrestheart':
    ensure => file,
    owner  => root, group => root, mode => 755,
    source => 'puppet:///modules/smx_restheart/fxrestheart',
  }

  service { 'fxrestheart':
    ensure    => running,
    enable    => true,
    path      => "/etc/init.d",
    start     => "/etc/init.d/fxrestheart start",
    stop      => "/etc/init.d/fxrestheart stop",
    subscribe => File["/etc/init.d/fxrestheart"],
    require   => File['/etc/init.d/fxrestheart'],
  }

}
